<%-- 
    Document   : quanlyhoadon
    Created on : Jan 5, 2012, 11:40:49 PM
    Author     : HoangLiem
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<link href="style/manage.css" rel="stylesheet" type="text/css"/>
<div id="body">
    <div class="title">QUẢN LÝ HÓA ĐƠN</div>
    <div class="item" style="background-color:#EEE;">
        <div class="item_1"><b>Mã hóa đơn</b></div>
        <div class="item_2"><b>Username</b></div>
        <div class="item_3"><b>Sản phẩm</b></div>
        <div class="item_4"><b>Total price</b></div>
        <div class="item_5"><b>Thanh toán</b></div>
    </div>
    <c:if test="${dsthanhtoan.size()==0}">
        <div class="item">
            <center><b>CHƯA CÓ THANH TOÁN NÀO</b></center>  
        </div>
    </c:if>
    <c:forEach items="${dsthanhtoan}" var="thanhToan" varStatus="dsthanhtoan" begin="0" end="${dsthanhtoan.size()}" step="1">
        <div class="item">
            <div class="item_1">${thanhToan.maThanhToan}</div>
            <div class="item_2">${thanhToan.thanhvien.tenDangNhap}</div>
            <div class="item_3"><a target="_blank" href="chiTietSanPham?id=${thanhToan.sanpham.maSanPham}">${thanhToan.sanpham.tenSanPham}</a></div>
            <div class="item_4">${thanhToan.sanpham.getMyHighestPrice()},000 VNĐ</div>
            <div class="item_5">
                <c:choose>
                    <c:when test="${thanhToan.tinhTrang != null}">
                        Đã thanh toán
                    </c:when>
                    <c:otherwise>
                        Chưa thanh toán
                    </c:otherwise>
                </c:choose>
            </div>
        </div>
    </c:forEach>
</div>

